package router

import (
	"goods_master/handler"

	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("login", handler.Login)
	r.GET("userDetail", handler.UserDetail)
	r.GET("list", handler.List)
	r.GET("goodsDetail", handler.GoodsDetail)
	r.GET("commentList", handler.CommentList)
	r.GET("commentDetail", handler.CommentDetail)
	return r
}
